import os
import sys


def load_module(module,path):
    # Append given path to system's path
    sys.path.append(os.path.abspath(path))

    # Import given module
    mod = __import__(module)

    # Remove previously added path from system's path
    sys.path.pop()

    # Return loaded module
    return mod
